﻿using Owin;
using System.Web.Http;

namespace Sustainalytics.CarbonData.Service
{
    public class Startup
    {
        public void Configuration(IAppBuilder builder)
        {
            builder.UseAuthenticationServer();

            var config = new HttpConfiguration();
            WebApiConfig.Register(config);
            config.Formatters.XmlFormatter.SupportedMediaTypes.Clear();
            builder.UseWebApi(config);

            config.EnsureInitialized();
        }
    }
}
